-
Notifications
You must be signed in to change notification settings - Fork 197
update package deps for custom project root #1412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@jmschonfeld I found one place we run |
@swift-ci please test |
All of our automated testing should be using |
Package.swift
Outdated
[ | ||
.package( | ||
url: "https://github.com/apple/swift-collections", | ||
from: "1.1.0"), | ||
branch: "main"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We actually want to keep this at 1.1.0 instead of main
since these versions should match what we use for building the toolchain. When building the swift toolchain, the build script builds against swift-syntax and swift-foundation-icu's main branch, but it builds against a tag of swift-collections since that package is developed outside of the toolchain and tagged every so often. When building a toolchain, this JSON file determines what is checked out: https://github.com/swiftlang/swift/blob/3bacfa7fb974e89ad7278f727ccd54a6643b87b6/utils/update_checkout/update-checkout-config.json#L142 (i.e. it determines what branch/tag is checked out and then specified via SWIFTCI_USE_LOCAL_DEPS
when running in CI) so ideally these dependencies (for local package development outside of the toolchain) will use the same-ish dependencies
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jmschonfeld Ahh… interesting! I can change this back. Is the idea to keep this version here and the version from update-checkout-config.json
bound together manually? We don't have any easy way to keep that version defined in just one place and then queried dynamically?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this all then imply that we don't currently have a Foundation
CI job that builds against the main
commit on Swift-Collections
? If in theory a bad commit did land on Collections
that broke something in Foundation
we might not know about it until Collections
pushes a new version tag?
One small improvement to package manifest:
swift-corelibs-foundation
1 to compute the location of dependencies:SWIFTCI_USE_LOCAL_DEPS=1
moves us up one directory when looking for dependencies.SWIFTCI_USE_LOCAL_DEPS
pulls dependencies from GitHub.Tested locally from my machine:
Footnotes
https://github.com/swiftlang/swift-corelibs-foundation/blob/swift-6.1.2-RELEASE/Package.swift#L155-L181 ↩